{"ast":null,"code":"/* eslint-disable import/prefer-default-export */\nimport classNames from 'classnames';\nimport { PresetColorTypes } from '../_util/colors';\nconst PresetColorRegex = new RegExp(`^(${PresetColorTypes.join('|')})(-inverse)?$`);\nexport function parseColor(prefixCls, color) {\n  const className = classNames({\n    [`${prefixCls}-${color}`]: color && PresetColorRegex.test(color)\n  });\n  const overlayStyle = {};\n  const arrowStyle = {};\n  if (color && !PresetColorRegex.test(color)) {\n    overlayStyle.background = color;\n    // @ts-ignore\n    arrowStyle['--antd-arrow-background-color'] = color;\n  }\n  return {\n    className,\n    overlayStyle,\n    arrowStyle\n  };\n}","map":{"version":3,"names":["classNames","PresetColorTypes","PresetColorRegex","RegExp","join","parseColor","prefixCls","color","className","test","overlayStyle","arrowStyle","background"],"sources":["/data/messenger.client/node_modules/antd/es/tooltip/util.js"],"sourcesContent":["/* eslint-disable import/prefer-default-export */\nimport classNames from 'classnames';\nimport { PresetColorTypes } from '../_util/colors';\nconst PresetColorRegex = new RegExp(`^(${PresetColorTypes.join('|')})(-inverse)?$`);\nexport function parseColor(prefixCls, color) {\n  const className = classNames({\n    [`${prefixCls}-${color}`]: color && PresetColorRegex.test(color)\n  });\n  const overlayStyle = {};\n  const arrowStyle = {};\n  if (color && !PresetColorRegex.test(color)) {\n    overlayStyle.background = color;\n    // @ts-ignore\n    arrowStyle['--antd-arrow-background-color'] = color;\n  }\n  return {\n    className,\n    overlayStyle,\n    arrowStyle\n  };\n}"],"mappings":"AAAA;AACA,OAAOA,UAAU,MAAM,YAAY;AACnC,SAASC,gBAAgB,QAAQ,iBAAiB;AAClD,MAAMC,gBAAgB,GAAG,IAAIC,MAAM,CAAE,KAAIF,gBAAgB,CAACG,IAAI,CAAC,GAAG,CAAE,eAAc,CAAC;AACnF,OAAO,SAASC,UAAU,CAACC,SAAS,EAAEC,KAAK,EAAE;EAC3C,MAAMC,SAAS,GAAGR,UAAU,CAAC;IAC3B,CAAE,GAAEM,SAAU,IAAGC,KAAM,EAAC,GAAGA,KAAK,IAAIL,gBAAgB,CAACO,IAAI,CAACF,KAAK;EACjE,CAAC,CAAC;EACF,MAAMG,YAAY,GAAG,CAAC,CAAC;EACvB,MAAMC,UAAU,GAAG,CAAC,CAAC;EACrB,IAAIJ,KAAK,IAAI,CAACL,gBAAgB,CAACO,IAAI,CAACF,KAAK,CAAC,EAAE;IAC1CG,YAAY,CAACE,UAAU,GAAGL,KAAK;IAC/B;IACAI,UAAU,CAAC,+BAA+B,CAAC,GAAGJ,KAAK;EACrD;EACA,OAAO;IACLC,SAAS;IACTE,YAAY;IACZC;EACF,CAAC;AACH"},"metadata":{},"sourceType":"module"}